package com.atguigu.gmall.controller;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * ClassName: PassportController
 * Package: com.atguigu.gmall.controller
 * Description:
 *
 * @Author 刘轩
 * @Create 2023-08-30 18:38
 * @Version 1.0
 */

@Controller
public class PassportController {


    /**
     * 登陆页面展示页面
     * @param request
     * @return
     */
  @GetMapping("login.html")
 public String login(HttpServletRequest request){
    // 存储数据
   request.setAttribute("originUrl",request.getParameter("originUrl"));

   // 返回登陆页面
   return "login";
  }
}
